<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<ul>
				{if $BTP[$get.open].log}<li><a href="{write_url url=$thisurl action='log' DEL='ALL'}" {CLASS_COLOR log=$get.action CLASS='this'}>API日志</a></li>{/if}
				{if $BTP[$get.open].add}<li><a href="{write_url url=$thisurl action='add' DEL='ALL'}" {CLASS_COLOR add=$get.action CLASS='this'}>添加API用户</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl action='show' DEL='ALL'}" {CLASS_COLOR show=$get.action CLASS='this'}>API用户列表</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="show">
			<form action="{write_url url=$thisurl action='del'}" method="post">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr>
						<th>标识码</th>
						<th>联系人</th>
						<th>类型</th>
						<th>年份</th>
						<th>月份</th>
						<th>请求量</th>
					</tr>
					{foreach item=pso from=$list_text}
					<tr align="center">
						<td height="25">{$pso.api_key}</td>
						<td align="left">{$pso.name}</td>
						<td>{if $pso.type == 'product'}产品{elseif $pso.type == 'detail'}产品明细{else}国际报价{/if}</td>
						<td>{$pso.year}</td>
						<td>{$pso.month}</td>
						<td>{$pso.amount}</td>
					</tr>
					{foreachelse}
					<tr><td colspan="6" class="else">当前没有短信发送记录</td></tr>
					{/foreach}
				</table>
				<div class="select">
				<!--
				{if $BTP[$get.open].del}
					选择：
					<input value="全部选择" type="button" onclick="select_all('id[]');" />
					<input value="全部取消" type="button" onclick="select_out('id[]');" />
					<input value="反向选择" type="button" onclick="select_agt('id[]');" />
					<input value="删除选择" type="button" onclick="select_del('id[]' , this);" />
				{/if}
				-->
				</div>
			</form>
			{if $list_page.Record > 0}
			<div class="page">
				每页
				<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='PNS'}')">
					<option value="PNS=10" {selected val=$get.PNS str='10'}>10</option>
					<option value="PNS=25" {selected val=$get.PNS str='25'}>25</option>
					<option value="PNS=50" {selected val=$get.PNS str='50'}>50</option>
					<option value="PNS=100" {selected val=$get.PNS str='100'}>100</option>
				</select>
				条数据
				当前第{$list_page.NowPage}页 / 共{$list_page.count}页
				{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page='1'}">首页</a>{else}首页{/if}
				{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page=$list_page.up}">上一页</a>{else}上一页{/if}
				{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.down}">下一页</a>{else}下一页{/if}
				{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.count}">尾页</a>{else}尾页{/if}
				至 <input type="text" value="{$list_page.NowPage}" onkeydown="go_page(event , this , '{$thisurl}')" /> 页
				排序:
				<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='ORDER'}')">
					<option value="ORDER=time_UP" {selected val=$get.ORDER str='time_UP'}>按 时间 (↑) 排序</option>
					<option value="ORDER=time_Dn" {selected val=$get.ORDER str='time_Dn'}>按 时间 (↓) 排序</option>
				</select>
			</div>
			{/if}
		</div>		
	</div>
	<b class="clear"></b>
</div>
</body>
</html>